import matplotlib.pyplot as plt
import numpy as np
x=np.arange(0,2*np.pi,0.1)
y=np.sin(x)
x1=np.linspace(0,1*np.pi,100)
y2=np.sin(x1)
plt.figure(figsize=(12,4))
plt.subplot(1,2,1)
plt.plot(x,y,label='arange')
plt.title('Using arange()')
plt.legend()
plt.subplot(1,2,2)
plt.plot(x1,y2,label='arange')
plt.title('Using arange()')
plt.legend()
plt.show()
